With this script you can Find what kind of object and material IDs you have in your 3ds Max scene - change objects and materials IDs, give a random objects IDs und select them.
You can downloadi it on my website: ID Finder
There is a video tutorial how to use the object and material ID scrip :
This is a tutorial how to install this script: